package org.springboot.Servicce;

import org.springboot.domain.User;
import org.springboot.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserService {

    @Autowired
    private UserMapper userMapper;

    public List<User> userList() {

        return userMapper.selectList(null);
    }
}
